import Vue from 'vue'
import Vuex from 'vuex'
import user from './module/user'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userData: {
      userName: ''
    },
  },
  mutations: {
    editUserData (state, data) {
      state.userData.userName = data
    }
  },
  actions: {
  },
  modules: {
    user
  }
})
